#ifndef DATA_MANGE_CHECK_H
#define DATA_MANGE_CHECK_H

#include <QWidget>
#include <QSqlDatabase>
#include <QtDebug>
#include <QSqlQuery>
#include <QPushButton>
#include <QVector>
#include <QStringList>
#include <QMessageBox>
#include <QPrinter>
#include <QPrinterInfo>
#include <QPrintDialog>
#include <QFile>
#include <QPrinter>
#include <QPrintPreviewDialog>
#include <QPrintPreviewWidget>
#include <QPainter>
#include <QFont>
#include <QTextDocument>
#include <QCloseEvent>

namespace Ui {
class data_mange_check;
}

class data_mange_check : public QWidget
{
    Q_OBJECT

public:
    explicit data_mange_check(QWidget *parent = nullptr);
    ~data_mange_check();

signals:
    void child_close();

private:
    Ui::data_mange_check *ui;
    QSqlDatabase sql;

    QStringList sex_list;
    QStringList grade_list;
    QStringList family_list;
    QStringList work_list;
    QStringList edu_list;
    QString text;
    QString name;


    void Init();
protected:

    void closeEvent(QCloseEvent*);
private slots:
    void display_date_check(int);
    void click_print();
    void printPreview(QPrinter*);
    void display_print(int);
};

#endif // DATA_MANGE_CHECK_H
